using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Terra.WebApi.Areas.Client.Controllers
{
    /// <summary>
    /// PC端首页控制器
    /// </summary>
    [Area("Client")]
    [Route("api/client/[controller]")]
    [ApiController]
    [Authorize]
    public class HomeController : ControllerBase
    {
        /// <summary>
        /// 获取PC端首页信息
        /// </summary>
        /// <returns>首页数据</returns>
        [HttpGet]
        public IActionResult Get()
        {
            return Ok(new { message = "这是PC端接口" });
        }
    }
}